package com.avic.rong.api.login_register;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

public class BindWxApi extends BaseApi {

    private String mobile;
    private String code;
    private String wxUserJson;

    public BindWxApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener) {
        super(rxAppCompatActivity, listener);
    }

    public void setArguments(String mobile,String code,String wxUserJson ) {
        this.mobile = mobile;
        this.code = code;
        this.wxUserJson = wxUserJson;
    }
    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService httpPostService = retrofit.create(HttpPostService.class);
        return httpPostService.wxBind(mobile,code,wxUserJson);
    }

}
